home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 11 / Mac Magazin and MacEasy Magazine CD - Issue 11.iso / Sharewarebibliothek / Entwickler / appe Windows 2.0 / floaters.h < prev    next >
Text File  |  1995-06-06  |  2KB  |  49 lines

  1. // File "floaters.h" - 
  2.  
  3. #ifndef ____FLOATERS_HEADER____
  4. #define ____FLOATERS_HEADER____
  5.  
  6. // * ****************************************************************************** *
  7. // * ****************************************************************************** *
  8.  
  9. // Declare a Guide for Passing the Filter Helper, for Universal Headers
  10. typedef void (*FloaterEventProcPtr)(EventRecord *floatEvent, WindowPtr floatWindow);
  11. typedef void (*FloaterCloseProcPtr)(WindowPtr floatWindow);
  12.         
  13. // * ****************************************************************************** *
  14.  
  15. typedef struct FloaterQElem {
  16.     struct FloaterQElem *qLink;
  17.     short qType;
  18.     
  19.     Boolean hideMe;
  20.     long hotApplication;
  21.  
  22.     WindowPtr floatWindow;
  23.     FloaterEventProcPtr eventHandler;
  24.     FloaterCloseProcPtr closeHandler;
  25.     } FloaterQElem, *FloaterQElemPtr;
  26.     
  27. // * ****************************************************************************** *
  28. // * ****************************************************************************** *
  29. // Function Prototypes
  30.  
  31. WindowPtr NewFloater(Ptr wStorage, Rect *bounds, Str255 title, Boolean visFlag,
  32.         short wdefProc, WindowPtr behind, Boolean closeFlag, long refCon, long hotApp, 
  33.         FloaterEventProcPtr eventHandler, FloaterCloseProcPtr closeHandler);
  34. void CloseFloater(WindowPtr win);
  35. void DisposeFloater(WindowPtr win);
  36.  
  37. FloaterQElemPtr GetOneFloater(WindowPtr win, Boolean dequeueIt);
  38. FloaterQElemPtr GetIndFloater(short index, Boolean dequeueIt);
  39.  
  40. Boolean ShowHideFloater(WindowPtr win);
  41. void UpdateFloater(WindowPtr win);
  42. void EventDispatchFloaters(EventRecord *theEvent, WindowPtr win);
  43. void CloseRemainingFloaters(void);
  44.  
  45. Boolean GetFloaterEvent(EventRecord *theEvent);
  46. Boolean TestScreenSaver(void);
  47.  
  48. #endif ____FLOATERS_HEADER____
  49.